package com.sywl.service;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

import com.sywl.orm.Building;
import com.sywl.util.DataGridModel;

public interface BaseService<T> {
	public void save(T entity);

	public void update(T entity);

	public void delete(Serializable id);

	public T findById(Serializable id);

	public List<T> getAll();

	public List<T> findByHQL(String hql, Object... params);

	public Map<String, Object> getPageList(DataGridModel dgm, T entity)
			throws Exception;

}
